# coding: utf-8

import cgi, cgitb
import xss
cgitb.enable()

print "Content-Type: text/html"
print

form = cgi.FieldStorage()

if 'textarea' not in form:
    print '<H4>Hello page :)</H4>'

else:
    text_incoming = form["textarea"].value

    print xss.xssescape(text_incoming)